package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.sql.Timestamp;

/**
 * @Author: lu
 * @Date: 2024-03-11-18:53
 * @Description:
 */
@Data
@TableName("person_category")
public class Category {
    @TableId(type = IdType.AUTO)
    //@TableField("category_id")
    private  Integer categoryId;


    @TableField("category_name")
    @ApiModelProperty(value = "分类名称")
    private  String categoryName;

    @TableField("create_time")
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private  Timestamp updateTime;

    @ApiModelProperty("逻辑删除")
    @TableField("is_delete")
    private  Integer isDelete;
}
